/**
 * Copyright 2010 Balaji Thennarangam.
 */
package com.kathez.studentportal.entity;

import java.util.Date;

import com.kathez.entity.AbstractKathezEntity;

/**
 * @author Balaji T
 *
 */
public class Student extends AbstractKathezEntity {

	/**
	 * 
	 */
	public Student() {
		super();
	}
	
	/**
	 * @param primaryKey
	 */
	public Student(StudentPK primaryKey) {
		super();
		this.primaryKey = primaryKey;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.KathezEntity#getPrimaryKey()
	 */
	@Override
	public PrimaryKey getPrimaryKey() {
		return this.primaryKey;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.KathezEntity#getEntityName()
	 */
	@Override
	public String getEntityName() {
		return ENTITY_NAME;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.KathezEntity#getIdentity()
	 */
	@Override
	public String getIdentity() {
		return this.getPrimaryKey().getKeysAsString();
	}
	
	private static final String ENTITY_NAME = "Student";
	private StudentPK primaryKey;
	private String firstName;
	private String middleName;
	private String lastName;
	private Date dateOfBirth;	
	
	/**
	 * @return the firstName
	 */
	public String getFirstName() {
		return firstName;
	}

	/**
	 * @param firstName the firstName to set
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	/**
	 * @return the middleName
	 */
	public String getMiddleName() {
		return middleName;
	}

	/**
	 * @param middleName the middleName to set
	 */
	public void setMiddleName(String middleName) {
		this.middleName = middleName;
	}

	/**
	 * @return the lastName
	 */
	public String getLastName() {
		return lastName;
	}

	/**
	 * @param lastName the lastName to set
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	/**
	 * @return the dateOfBirth
	 */
	public Date getDateOfBirth() {
		return dateOfBirth;
	}

	/**
	 * @param dateOfBirth the dateOfBirth to set
	 */
	public void setDateOfBirth(Date dateOfBirth) {
		this.dateOfBirth = dateOfBirth;
	}

	/**
	 * @param primaryKey the primaryKey to set
	 */
	public void setPrimaryKey(StudentPK primaryKey) {
		this.primaryKey = primaryKey;
	}	
}
